﻿using Ewell.Interface.Accounting.Common.Model.Response;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.BizComponent.Charge.UI.VM
{
    public class DataSelectItemVm: NotifyPropertyChanged
    {
        /**
         * 数据选择项标识
         */
        private string _dataSelectItemId;
        public string dataSelectItemId
        {
            get { return _dataSelectItemId;}set { 
                if(value != _dataSelectItemId)
                {
                    _dataSelectItemId = value;
                    OnPropertyChanged(nameof(dataSelectItemId));
                }
            }
        }
        /**
         * 基础数据目录分类标识
         */
        private string _basicDataDictTypeId;
        public string basicDataDictTypeId { get { return _basicDataDictTypeId; } set { 
                if(value != _basicDataDictTypeId)
                {
                    _basicDataDictTypeId = value;
                    OnPropertyChanged(nameof(basicDataDictTypeId));
                }
            } }
        /**
         * 基础数据目录分类编码
         */
        private String _basicDataDictTypeNo;
        public String basicDataDictTypeNo
        {
            get
            {
                return _basicDataDictTypeNo;
            }
            set
            {
                if( value != _basicDataDictTypeNo)
                {
                    _basicDataDictTypeNo = value;
                    OnPropertyChanged(nameof(basicDataDictTypeNo));
                }
            }
        }
        /**
         * 基础数据目录分类描述
         */
        private String _basicDataDictTypeDesc;
        public String basicDataDictTypeDesc { get { return _basicDataDictTypeDesc; }set
            {
                if( _basicDataDictTypeDesc != value )
                {
                    _basicDataDictTypeDesc = value;
                    OnPropertyChanged(nameof(basicDataDictTypeDesc));
                }
            }
        }
        /**
         * 控件类型代码
         */
        private String _componentTypeCoding;
        public String componentTypeCoding
        {
            get { return _componentTypeCoding; }
            set { 
                if( value != _componentTypeCoding)
                {
                    _componentTypeCoding = value;
                    OnPropertyChanged(nameof(componentTypeCoding));
                }
            }
        }
        /**
         * 默认基础数据标识
         */
        private String _basicDataId;
        public String basicDataId { get { 
                return _basicDataId;
            } set { 
                if( value!=_basicDataId)
                {
                    _basicDataId = value;
                    OnPropertyChanged(nameof(basicDataId));
                }
            }
        }
        /**
         * 默认基础数据编码
         */
        private String _basicDataNo;
        public String basicDataNo { get { return _basicDataNo; } set
            {
                if(value!=_basicDataNo)
                {
                    _basicDataNo = value;
                    OnPropertyChanged(nameof(basicDataNo));
                }
            } }
        /**
         * 默认基础数据名称
         */
        private String _basicDataName;
        public String basicDataName { get { return _basicDataName; } set { 
                if( _basicDataName != value )
                {
                    _basicDataName = value;
                    OnPropertyChanged(nameof(basicDataName));
                }
            } }
        /**
         * 排序序号
         */
        private int? _seqNo;
        public int? seqNo { get { return _seqNo; } set {
                if( value != _seqNo)
                {
                    _seqNo = value;
                    OnPropertyChanged(nameof(seqNo));
                }
            } }
        /**
         * 显示标志
         */
        private String _displayFlag;
        public String displayFlag { get { return _displayFlag; } set { 
                if(value != _displayFlag)
                {
                    _displayFlag = value;
                    OnPropertyChanged(nameof(displayFlag));
                }
            } }
        /**
         * 必填标志
         */
        private String _mustFlag;
        public String mustFlag { get { return _mustFlag; } set { 
                if( value!=_mustFlag)
                {
                    _mustFlag = value;
                    OnPropertyChanged(nameof(mustFlag));
                }
            } }
        /// <summary>
        /// 选择项内容
        /// </summary>
        private List<BasicDataVm> _basicDataList;
        public List<BasicDataVm> basicDataList { get { return _basicDataList; } set
            {
                if (value != _basicDataList)
                {
                    _basicDataList = value;
                    OnPropertyChanged(nameof(basicDataList));
                }
            } }
        /// <summary>
        /// 选中的选择项
        /// </summary>
        private BasicDataVm _basicData;
        public BasicDataVm basicData
        {
            get { return _basicData; }
            set
            {
                if( value != _basicData)
                {
                    _basicData = value;
                    OnPropertyChanged(nameof(basicData));
                }
            }
        }
        /// <summary>
        /// 文本框选择项
        /// </summary>
        private string _textBasicData;
        public string textBasicData
        {
            get { return _textBasicData; }
            set
            {
                if( _textBasicData != value)
                {
                    _textBasicData = value;
                    OnPropertyChanged(nameof(textBasicData));
                }
            }
        }
        /// <summary>
        /// 日期选择项
        /// </summary>
        private DateTime? _timeBasicData;
        public DateTime? timeBasicData
        {
            get { return _timeBasicData; }
            set
            {
                if(_timeBasicData != value)
                {
                    _timeBasicData = value;
                    OnPropertyChanged(nameof(timeBasicData));
                }
            }
        }
    }
}
